<?php
/**
 * The main template file.
 *
 * @package WordPress
 * @subpackage urbanmeandering
 */

get_header(); ?>

	
	<div id="main" class="group">
		<section id="recent-posts" class="content posts-list-overview">
			<h1 class="page-label"><span class="label">Latest</span><span class="right">&nbsp;</span></h1>
			<div>
        <?php 
				global $query_posts;        
				$page = get_query_var('paged');
				if ( $page == 0 )
				{
					$page = 1;
				}
         
				$args = array( 'post_type' => array('post','food','travel-activity','entertainment','advocacy-charity'),
									'paged' => $page,
									'post_status' => 'publish',
									'ignore_sticky_posts' => 1); 
				query_posts($args);

				if ( have_posts() ) 
				{
					while ( have_posts() ) 
					{
						the_post();
						?>
							<article>
								<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('302x170'); ?></a>
								<div class="text">
									<a href="<?php the_permalink(); ?>"><h2 class="entry-title"><?php the_title(); ?></h2></a>
									<p class="entry-desc">
										<time datetime="<?php echo the_time(); ?>"><?php the_time(get_option('date_format')); ?></time> - <?php echo wp_trim_words( get_the_excerpt(), 15 ); ?>
									</p>
								</div>
								<span class="comment-count">
									<a href=" <?php comments_link(); ?>"><?php comments_number( 'No comments yet.', '1 Comment', '% Comments' ); ?> </a>
                </span>
							</article>
						<?php      
					} 
				} ?>
			</div>
      <?php //page_navigation(); ?>	
		</section>
		
    <?php get_sidebar(); ?>
		
	</div>
	
<?php get_footer(); ?>